<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>收款通知书</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/print.css?v=202001010101">
</head>
<body>
<div class="pring-page">
    <div class="print-btns layui-form">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" onclick="javascript:window.print()"><i class="fa fa-print"></i> 打印</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportExcel"><i class="fa fa-file-pdf-o"></i> 导出Excel</button>
    </div>
    <div class="main">
        <div id="conTempView"></div>
    </div>
</div>
<script type="text/html" id="conTemp">
    <div class="page-break">
        <div class="head">
            <div class="title18">{{d.subject.name}}</div>
            <div class="title12">{{removeNull(d.subject.address)}}</div>
            <div class="title12">电话：<span style="min-width: 100px;display: inline-block">{{removeNull(d.subject.tel)}}&nbsp;</span>  传真：<span style="min-width: 100px;display: inline-block">{{removeNull(d.subject.fax)}}&nbsp;</span></div>
            <div class="title22">收款通知书</div>
        </div>
        <table width="100%" class="t-a-c" style="margin-top: 8px;margin-bottom: 8px;">
            <tbody>
            <td style="width: 8%">客户名称:</td><td style="border-bottom:solid #000 1px;width: 29%">{{d.order.customerName}}</td>
            <td style="width: 8%">订单号:</td><td style="border-bottom:solid #000 1px;width: 15%">{{d.order.docNo}}</td>
            <td style="width: 8%">订单日期:</td><td style="border-bottom:solid #000 1px;width: 8%">{{d.order.orderDate}}</td>
            <td style="width: 8%">结算汇率:</td><td style="border-bottom:solid #000 1px;width: 8%">{{removeNull(d.order.impRate)}}</td>
            <td style="width: 8%">货款汇率:</td><td style="border-bottom:solid #000 1px;width: 8%">{{removeNull(d.order.goodsRate)}}</td>
            </tbody>
        </table>
        <div class="printArea">
            <table>
                <thead>
                <tr>
                    <th>序号</th>
                    <th>物料</th>
                    <th>单价</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>币制</th>
                    <th>关税率</th>
                    <th>关税</th>
                    <th>增值税率</th>
                    <th>增值税</th>
                </tr>
                </thead>
                <tbody>
                {{# $.each(d.members,function(i,o){}}
                <tr>
                    <td class="t-a-c">{{i+1}}</td>
                    <td>{{removeNull(o.name)}};{{o.brand}};{{o.model}}</td>
                    <td class="t-a-r">{{o.unitPrice}}</td>
                    <td class="t-a-r">{{formatCurrency(o.quantity)}}</td>
                    <td class="t-a-r">{{formatCurrency(o.totalPrice)}}</td>
                    <td class="t-a-c">{{d.order.currencyName}}</td>
                    <td class="t-a-r">{{o.tariffRate}}</td>
                    <td class="t-a-r">{{formatCurrency(o.tariffRateVal)}}</td>
                    <td class="t-a-r">{{o.addedTaxTate}}</td>
                    <td class="t-a-r">{{formatCurrency(o.addedTaxTateVal)}}</td>
                </tr>
                {{#});}}
                <tr>
                    <td colspan="3"> 合计：</td>
                    <td class="t-a-r">{{formatCurrency(d.total.quantity)}}</td>
                    <td class="t-a-r">{{formatCurrency(d.total.totalPrice)}}</td>
                    <td></td>
                    <td></td>
                    <td class="t-a-r">{{formatCurrency(d.total.tariffRateVal)}}</td>
                    <td></td>
                    <td class="t-a-r">{{formatCurrency(d.total.addedTaxTateVal)}}</td>
                </tr>
                </tbody>
            </table>
            <table style="margin-top: 8px">
                <thead>
                <tr>
                    <th style="width: 130px;">费用科目</th>
                    <th style="width: 95px;">费用金额(元)</th>
                    <th style="width: 95px;">已付金额(元)</th>
                    <th style="width: 85px;">账期日</th>
                    <th style="width: 85px;">逾期利率%</th>
                    <th>费用说明</th>
                </tr>
                </thead>
                <tbody>
                {{# $.each(d.costs,function(i,o){}}
                <tr>
                    <td>{{o.expenseSubjectName}}</td>
                    <td class="t-a-r">{{formatCurrency(o.receAmount)}}</td>
                    <td class="t-a-r">{{formatCurrency(o.acceAmount)}}</td>
                    <td class="t-a-c">{{o.periodDate}}</td>
                    <td class="t-a-r">{{formatCurrency(o.overdueRate)}}</td>
                    <td>{{removeNull(o.memo)}}</td>
                </tr>
                {{#});}}
                </tbody>
            </table>
            {{#if(d.payments!=null && d.payments.length > 0){}}
            <table style="margin-top: 8px;">
                <thead>
                <tr>
                    <th>付款单号</th>
                    <th>申请日期</th>
                    <th>付汇汇率</th>
                    <th>付款金额</th>
                    <th>币制</th>
                    <th>人民币金额</th>
                </tr>
                </thead>
                <tbody>
                {{# $.each(d.payments,function(i,o){}}
                <tr>
                    <td class="t-a-c">{{o.docNo}}</td>
                    <td class="t-a-c">{{o.accountDate}}</td>
                    <td class="t-a-r">{{o.exchangeRate}}</td>
                    <td class="t-a-r">{{formatCurrency(o.accountValue)}}</td>
                    <td class="t-a-c">{{o.currencyName}}</td>
                    <td class="t-a-r">{{formatCurrency(o.accountValueCny)}}</td>
                </tr>
                {{#});}}
                </tbody>
            </table>
            {{#}}}
        </div>
<!--        <div style="text-align: left;font-size: 14px;margin-bottom: 8px;margin-top: 8px;">-->
<!--            <strong style="font-size: 12px;">毛重合计：</strong>-->
<!--            <div style="display: inline-block;width:250px;border-bottom: solid #000 1px; text-align: center;padding-bottom: 3px; ">-->
<!--                <strong>{{formatCurrency(d.total.totalGrossWeight)}}</strong>-->
<!--            </div>-->
<!--        </div>-->
        <div style="text-align: left;font-size: 14px;margin-bottom: 8px;margin-top: 8px;">
            <strong style="font-size: 12px;">费用合计：</strong>
            <div style="display: inline-block;width:250px;border-bottom: solid #000 1px; text-align: center;padding-bottom: 3px; ">
                <strong>{{formatCurrency(d.total.receAmount)}}</strong>
            </div>元
        </div>
        <div style="margin-top: 8px;color: #ff0000">
            *注：费用信息以进口报关当日为准
        </div>
        <div style="margin-top: 8px">
            <p>请将以上应付款项按如下方式付至我司银行账户：</p>
            {{# $.each(d.banks,function(i,o){}}
            <p>{{i+1}} 开户行：{{o.name}} 银行账号：{{o.account}} {{d.subject.name}}</p>
            {{#});}}
        </div>
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/order/imp/print-cost.js?v=202001010102"></script>
</body>
</html>